package bpmn.structure;

import ta.structure.TATemplate;

import java.util.ArrayList;
import java.util.HashMap;

public class BPMNDefinition extends BPMNElem
{
    private String fileName;
    private TATemplate mainTemplate;
    private Collaboration collaboration;
    private final ArrayList<Process> processList;
    public final HashMap<String, BPMNElem> elemMap;

    {
        type = BPMNElemType.Definition;
    }

    public BPMNDefinition(String id)
    {
        super(id);
        processList = new ArrayList<>();
        elemMap = new HashMap<>();
    }

    public void addProcess(Process p)
    {
        processList.add(p);
    }

    public void setCollaboration(Collaboration collaboration)
    {
        this.collaboration = collaboration;
    }

    public ArrayList<Process> getProcessList()
    {
        return processList;
    }

    public Collaboration getCollaboration()
    {
        return collaboration;
    }

    public String getFileName()
    {
        return fileName;
    }

    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public TATemplate getMainTemplate()
    {
        return mainTemplate;
    }

    public void setMainTemplate(TATemplate mainTemplate)
    {
        this.mainTemplate = mainTemplate;
    }
}
